from django.db import models


class UserInformation(models.Model):
    user_nick = models.CharField(max_length=100, blank=False, null=False)
    ali_id = models.CharField(max_length=100, blank=True, null=True)
    aliyun_pk = models.CharField(max_length=100, blank=True, null=True)
    real_name_type = models.EmailField(max_length=100)
    user_type = models.CharField(max_length=100, blank=True, null=True)
    init_user_type = models.CharField(max_length=100, blank=True, null=True)
    gmt_start = models.DateTimeField(blank=True, null=True)
    gmt_end = models.DateTimeField(blank=True, null=True)
    total_pay_amount = models.CharField(max_length=100, blank=True, null=True)
    created_at = models.DateTimeField(auto_now_add=True)
    updated_at = models.DateTimeField(auto_now=True)

    def __str__(self):
        return self.user_nick
